/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. 
 */
package com.icinfo.cloud.provider.logs.service.impl;

import com.icinfo.cloud.provider.logs.mapper.AppAuthorizationBusiRequestLogMapper;
import com.icinfo.cloud.provider.logs.model.AppAuthorizationBusiRequestLog;
import com.icinfo.cloud.provider.logs.service.IAppAuthorizationBusiRequestLogService;
import com.icinfo.framework.core.service.support.MyBatisServiceSupport;
import com.icinfo.framework.tools.utils.StringUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

/**
 * 描述: 接入应用业务请求日志表 app_authorization_busi_request_log 对应的Service接口实现类.<br>
 *
 * @author framework generator
 * @date 2023年04月03日
 */
@Slf4j
@Service
public class AppAuthorizationBusiRequestLogServiceImpl extends MyBatisServiceSupport implements IAppAuthorizationBusiRequestLogService {

    @Resource
    private AppAuthorizationBusiRequestLogMapper appAuthorizationBusiRequestLogMapper;

    /**
     * 保存接入应用业务请求日志
     *
     * @param requestLog
     */
    public void saveAppAuthorizationBusiRequestLog(AppAuthorizationBusiRequestLog requestLog) {
        requestLog.setId(StringUtils.uuid());
        requestLog.setCreateTime(new Date());
        appAuthorizationBusiRequestLogMapper.insert(requestLog);
    }
}